import 'package:flutter/cupertino.dart';

///
/// appInternalId
/// {
/// 'main':1,
/// 'main_card_base':2,
/// 'main_card_base_google':3,
/// }
///

class AppConfig extends InheritedWidget {
  AppConfig(
      {required this.appDisplayName,
      required this.appInternalId,
        required this.stringResource,
      required Widget child})
      : super(child: child);

  final String appDisplayName;
  final int appInternalId;
  final StringResource stringResource;

  static AppConfig of(BuildContext context) {
    return context.dependOnInheritedWidgetOfExactType<AppConfig>()!;
  }

  @override
  bool updateShouldNotify(InheritedWidget oldWidget) => false;
}

abstract class StringResource {
  late String baseUrl;
  late String marketCode;
  late String signature;
}
